package www.haoxiaozi.com.game;

import javax.swing.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-12-08
 * Time: 15:37
 */
//游戏面板
public class GamePanel extends JPanel {
    //绘制面板，游戏中所有画面用该画笔画
    @Override
    protected void paintComponent(Graphics g) {
        //清屏作用
        super.paintComponent(g);
        this.setBackground(new Color(37, 35, 35));
    }
}
